package com.base.taskreports.task.job;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.taskreports.task.service.JfuService;
import com.vip.saturn.job.AbstractSaturnJavaJob;
import com.vip.saturn.job.SaturnJobExecutionContext;
import com.vip.saturn.job.SaturnJobReturn;

public class JfuJob extends AbstractSaturnJavaJob {

	@Autowired
	private JfuService JfuService;
	
	
	@Override
	public SaturnJobReturn handleJavaJob(String jobName, Integer shardItem, String shardParam,
			SaturnJobExecutionContext shardingContext) throws InterruptedException {
		String DateTime = shardingContext.getJobParameter();
		//String DateTime = null;
		//比率指标监控	外部积分（转接/兑换）承兑金额浮动告警
		JfuService.getJFU_M001( DateTime);

		//各积分类别消费中各支付产品类型笔数占比浮动
		JfuService.getJFU_M002( DateTime);
		
		//各积分类别消费中各支付产品类型金额占比浮动
		JfuService.getJFU_M003( DateTime);
		
		//积分撤销/冲正/退货反向交易笔数占比浮动
		JfuService.getJFU_M004( DateTime);
		
		//积分撤销/冲正/退货反向交易金额占比浮动
		JfuService.getJFU_M005( DateTime);

		//营销系统系统成功率
		JfuService.getJFU_M006( DateTime);

		//积分兑换价值比不为1笔数
		JfuService.getJFU_M007(DateTime);

		//已失效积分金额浮动比率
		//JfuService.getJFU_M008(DateTime);


		
		
		// TODO Auto-generated method stub
		return new SaturnJobReturn("I am the return result of shard item " + shardItem);
	}

}
